package com.zhubayi.springcloud.controller;

import com.zhubayi.springcloud.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhubayi
 */
@RestController
public class SendMessageController {
    @Autowired
    private IMessageProvider iMessageProvider;
    @GetMapping("sendMessage")
    public String send(){
        return iMessageProvider.send();
    }
}
